﻿using EasyDDD.AdminModule.Application.QueriesSysMenu;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace EasyDDD.AdminModule.Host.WebAPI.Controllers.Dto
{
    [AutoMapperFrom(typeof(SysMenuGetListQueryResult))]
    public record SysMenuGetListResult : SysMenuGetListQueryResult
    {
        [JsonIgnore]
        public override bool IsDeleted { get; set; }
        [JsonIgnore]
        public override Guid TenantId { get; set; }

        //还是到前端去转换名称吧
        //[JsonPropertyName("auths")]
        //[DisplayName("auths")]
        //public override string Permission { get; set; } = string.Empty;

        //[JsonPropertyName("rank")]
        //[DisplayName("rank")]
        //public override int Sort { get; set; } = default!;


        //[JsonPropertyName("showLink")]
        //[DisplayName("showLink")]
        //public override bool Show { get; set; } = default!;


        //public string[] Roles { get; set; } = { "admin" };
    }
}
